﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PicAddWaterSet.aspx.cs" Inherits="CNVP.JShop.Web.Admin.PicAddWaterSet" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
            <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<meta content="IE=7" http-equiv="X-UA-Compatible" />
     <link href="CSS/Edit.css" rel="stylesheet" type="text/css" />
     <script src="../Scripts/jquery.js" type="text/javascript"></script>
    <script type="text/javascript" src="../Scripts/Common.js"></script>
    <script type ="text/javascript">
        $(function () {
            $("#btUp").click(function () {
                var $txtSmallWidth = $("#txtSmallWidth");
                if ($txtSmallWidth.val() == "") {
                    alert("请输入小缩列图宽！");
                    $txtSmallWidth.focus();
                    return false;
                }
                else if (!IsInteger($txtSmallWidth.val())) {
                    alert("小缩列图宽格式不正确！");
                    $txtSmallWidth.focus();
                    return false;
                }
                var $txtMiddleWidth = $("#txtMiddleWidth");
                if ($txtMiddleWidth.val() == "") {
                    alert("请输入中缩列图宽！");
                    $txtMiddleWidth.focus();
                    return false;
                }
                else if (!IsInteger($txtMiddleWidth.val())) {
                    alert("中缩列图宽格式不正确！");
                    $txtMiddleWidth.focus();
                    return false;
                }
                var $txtBigWidth = $("#txtBigWidth");
                if ($txtBigWidth.val() == "") {
                    alert("请输入大缩列图宽！");
                    $txtBigWidth.focus();
                    return false;
                }
                else if (!IsInteger($txtBigWidth.val())) {
                    alert("大缩列图宽格式不正确！");
                    $txtBigWidth.focus();
                    return false;
                }
                var $txtTextSmallFontSize = $("#txtTextSmallFontSize");
                if ($txtTextSmallFontSize.val() == "") {
                    alert("请输入小图文字大小！");
                    $txtTextSmallFontSize.focus();
                    return false;
                }
                else if (!IsInteger($txtTextSmallFontSize.val())) {
                    alert("小图文字大小格式不正确！");
                    $txtTextSmallFontSize.focus();
                    return false;
                }
                var $txtTextMiddleFontSize = $("#txtTextMiddleFontSize");
                if ($txtTextMiddleFontSize.val() == "") {
                    alert("请输入中图文字大小！");
                    $txtTextMiddleFontSize.focus();
                    return false;
                }
                else if (!IsInteger($txtTextMiddleFontSize.val())) {
                    alert("中图文字大小格式不正确！");
                    $txtTextMiddleFontSize.focus();
                    return false;
                }
                var $txtTextBigFontSize = $("#txtTextBigFontSize");
                if ($txtTextBigFontSize.val() == "") {
                    alert("请输入大图文字大小！");
                    $txtTextBigFontSize.focus();
                    return false;
                }
                else if (!IsInteger($txtTextBigFontSize.val())) {
                    alert("大图文字大小格式不正确！");
                    $txtTextBigFontSize.focus();
                    return false;
                }
                var $txtTextOriginalFontSize = $("#txtTextOriginalFontSize");
                if ($txtTextOriginalFontSize.val() == "") {
                    alert("请输入原图文字大小！");
                    $txtTextOriginalFontSize.focus();
                    return false;
                }
                else if (!IsInteger($txtTextOriginalFontSize.val())) {
                    alert("原图文字大小格式不正确！");
                    $txtTextOriginalFontSize.focus();
                    return false;
                }
                /*------------------------------*/
                var $txtTextFloatX = $("#txtTextFloatX");
                if ($txtTextFloatX.val() == "") {
                    alert("请输入文字位置-X轴！");
                    $txtTextFloatX.focus();
                    return false;
                }
                else if (!IsInteger($txtTextFloatX.val())) {
                    alert("文字位置-X轴格式不正确！");
                    $txtTextFloatX.focus();
                    return false;
                }
                var $txtTextFloatY = $("#txtTextFloatY");
                if ($txtTextFloatY.val() == "") {
                    alert("请输入文字位置-Y轴！");
                    $txtTextFloatY.focus();
                    return false;
                }
                else if (!IsInteger($txtTextFloatY.val())) {
                    alert("文字位置-Y轴格式不正确！");
                    $txtTextFloatY.focus();
                    return false;
                }
                var $txtImageFloatX = $("#txtImageFloatX");
                if ($txtImageFloatX.val() == "") {
                    alert("请输入图片位置-X轴！");
                    $txtImageFloatX.focus();
                    return false;
                }
                else if (!IsInteger($txtImageFloatX.val())) {
                    alert("图片位置-X轴格式不正确！");
                    $txtImageFloatX.focus();
                    return false;
                }
                var $txtImageFloatY = $("#txtImageFloatY");
                if ($txtImageFloatY.val() == "") {
                    alert("请输入图片位置-Y轴！");
                    $txtImageFloatY.focus();
                    return false;
                }
                else if (!IsInteger($txtImageFloatY.val())) {
                    alert("图片位置-Y轴格式不正确！");
                    $txtImageFloatY.focus();
                    return false;
                }
                return true;
            });

        })
   </script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="Content">
            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="cell">
             <tr>
                <td class="cell_group">
                    <img src="Images/ListIconTitle.jpg" alt="" />&nbsp;您的位置：<a href="PicAddWaterSet.aspx">水印设置</a>
                </td>
            </tr>
            </table>
            <table border="0" cellpadding="0" cellspacing="0" class="division">
                        <tr>
                            <th>
                                 小缩列图宽:</th>
                            <td>
                                 <asp:TextBox ID="txtSmallWidth" runat="server" MaxLength="50" Width="300px"/> 注：只规定宽度
                                </td>
                        </tr>
                        <tr>
                            <th>
                                 中缩列图宽:</th>
                            <td>
                                 <asp:TextBox ID="txtMiddleWidth" runat="server" MaxLength="50" Width="300px"/>
                                 注：只规定宽度
                                </td>
                        </tr>
                        <tr>
                            <th>
                                 大缩列图宽:</th>
                            <td>
                                 <asp:TextBox ID="txtBigWidth" runat="server" MaxLength="50" Width="300px"/>
                                 注：只规定宽度
                                </td>
                        </tr>
                        <tr>
                            <th>
                                 文字开启:</th>
                            <td>
                                 <asp:RadioButtonList ID="rblIsTextWatermark" runat="server" 
                                     RepeatDirection="Horizontal" Width="100px" CssClass="RadioButtonListTable">
                                     <asp:ListItem Selected="True" Value="1">是</asp:ListItem>
                                     <asp:ListItem Value="0">否</asp:ListItem>
                                 </asp:RadioButtonList>
                                </td>
                        </tr>
                        <tr>
                            <th>
                                 文字信息:</th>
                            <td>
                                 <asp:TextBox ID="txtTextWatermark" runat="server" MaxLength="50" Width="300px"/>
                                </td>
                        </tr>
                        <tr>
                            <th>
                                 文字类型:</th>
                            <td>
                                <asp:DropDownList ID="ddlTextFont" runat="server">
                                    <asp:ListItem Value="0">Verdana</asp:ListItem>
                                    <asp:ListItem Value="1">华文彩云</asp:ListItem>
                                </asp:DropDownList>
                                </td>
                        </tr>
                        <tr>
                            <th>
                                 小图文字大小:</th>
                            <td>
                                 <asp:TextBox ID="txtTextSmallFontSize" runat="server" MaxLength="50" Width="300px"/>
                                </td>
                        </tr>
                        <tr>
                            <th>
                                 中图文字大小:</th>
                            <td>
                                 <asp:TextBox ID="txtTextMiddleFontSize" runat="server" MaxLength="50" Width="300px"/>
                                </td>
                        </tr>
                        <tr>
                            <th>
                                 大图文字大小:</th>
                            <td>
                                 <asp:TextBox ID="txtTextBigFontSize" runat="server" MaxLength="50" Width="300px"/>
                                </td>
                        </tr>
                        <tr>
                            <th>
                                 原图文字大小:</th>
                            <td>
                                 <asp:TextBox ID="txtTextOriginalFontSize" runat="server" MaxLength="50" Width="300px"/>
                                </td>
                        </tr>
                        <tr>
                            <th>
                                 原图文字大小:</th>
                            <td>
                                 <asp:DropDownList ID="ddlTextFontColor" runat="server">
                                    <asp:ListItem Value="0">绿色</asp:ListItem>
                                    <asp:ListItem Value="1">红色</asp:ListItem>
                                    <asp:ListItem Value="2">蓝色</asp:ListItem>
                                </asp:DropDownList>
                                </td>
                        </tr>
                        <tr>
                            <th>
                                 文字位置-X轴:</th>
                            <td>
                                 <asp:TextBox ID="txtTextFloatX" runat="server" MaxLength="50" Width="300px"/>
                                </td>
                        </tr>
                        <tr>
                            <th>
                                 文字位置-Y轴:</th>
                            <td>
                                 <asp:TextBox ID="txtTextFloatY" runat="server" MaxLength="50" Width="300px"/>
                                </td>
                        </tr>
                        <tr>
                            <th>
                                 图片开启:</th>
                            <td>
                                 <asp:RadioButtonList ID="rblIsImageWatermark" runat="server" 
                                     RepeatDirection="Horizontal" Width="100px" CssClass="RadioButtonListTable">
                                     <asp:ListItem Selected="True" Value="1">是</asp:ListItem>
                                     <asp:ListItem Value="0">否</asp:ListItem>
                                 </asp:RadioButtonList>
                                </td>
                        </tr>
                         <tr>
                            <th>
                                 上传图片:</th>
                            <td>
                                 <asp:FileUpload ID="fileUp" runat="server" />
                                 <b style="color:Red;">注</b>：必须是.png图片<br />
                                 <asp:Image ID="imgPic" runat="server" Visible="false" />
                                <asp:TextBox ID="txtImageWatermark" runat="server" CssClass="Display"></asp:TextBox>
                                </td>
                        </tr>
                        <tr>
                            <th>
                                 图片位置-X轴:</th>
                            <td>
                                 <asp:TextBox ID="txtImageFloatX" runat="server" MaxLength="50" Width="300px"/>
                                </td>
                        </tr>
                        <tr>
                            <th>
                                 图片位置-Y轴:</th>
                            <td>
                                 <asp:TextBox ID="txtImageFloatY" runat="server" MaxLength="50" Width="300px"/>
                                </td>
                        </tr>
              </table>
              <div class="EditBtn">     
                    <asp:Button ID="btUp" runat="server" Text="提交" OnClick="btUp_Click" />
                    <input type="button" value="取消" onclick="javascript:history.go(-1)" />
                    </div>
    </div>
    </form>
</body>
</html>

